<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios保存一个用户</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        axios({
            method:'post',
            url:'http://localhost:8099/users',
            data:{
                username:"newUserr",
                password: "123456",
                phone: "13855664455",
                info: "{\"age\":20,\"city\":\"北京\"}",
                balance: 10000
            }
        }).then((result)=> {
            console.log(result.data);
        }).catch((err=>{
            console.log(err);
        }))
    </script>
</head>
<body>

</body>
</html>